const http=require('http')
const port=3000
const server=http.createServer((req,res)=>{
res.statusCode =200
res.setHeader('Content-Type','text/plain;charset=UTF-8')
res.end('Hello World\n')
})
server.listenl(port, () => {
console.Log(`服务已运行端口为:${port}/`)
})